@section('content')
<div class="row">
	<div class="col-md-3">
		@include('partial.sidebar.category', array('categories' => $categories, 'current' => 0))
	</div>
	
	<div class="col-md-9">
		<div class="row">
			@foreach ($products as $product)
			<div class="col-sm-4 col-md-4 col-lg-4">
				<div class="thumbnail">
					<img src="http://placehold.it/320x120" alt="">
					<div class="caption">
						<h4 class="pull-right">${{ number_format($product->pricing, 2) }}</h4>
						<h4>
							<a href="{{ url('product/' . $product->id) }}">{{ $product->name }}</a>
						</h4>
						<p>{{ $product->short_description }}</p>
					</div>
					<div class="ratings">
						<p class="pull-right">{{ $product->rating_count }} đánh giá</p>
						<p>
							@for ($i = 1; $i <= 5 ; $i++) 
								<span class="glyphicon glyphicon-star{{ ($i <= $product->rating_cache) ? '' : '-empty' }}"></span>
							@endfor
						</p>
					</div>
				</div>
			</div>
			@endforeach
		</div>
	</div>
</div>
@stop